process {
    withName: SAMTOOLS_COLLATE {
        ext.prefix = { "${meta.id}.collate" }
    }

    withName: SAMTOOLS_FIXMATE {
        ext.prefix = { "${meta.id}.fixmate" }
    }

    withName: SAMTOOLS_SORT {
        ext.prefix = { "${meta.id}.sort" }
    }

    withName: SAMTOOLS_MARKDUP {
        ext.prefix = { "${meta.id}.markdup" }
    }
}
